package util;

import interfaces.ClienteDAO;

public class DAOFactory {

	private static final boolean MODO_DEBUG = false; 	
	
	public static ClienteDAO criarClienteDAO() {
		ClienteDAOHibernate clienteDAOHibernate = new ClienteDAOHibernate();
		clienteDAOHibernate.setSessao(MODO_DEBUG ? HibernateUtilTest.getSession().getCurrentSession() : HibernateUtil.getSession().getCurrentSession());
		return clienteDAOHibernate;
	}
}
